package com.qianfeng.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import com.qianfeng.pojo.Dept;
@Repository
public class DeptDao {

	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	public void addDept(Dept dept) {
		jdbcTemplate.update("insert into dept(name) values(?)",new Object[]{dept.getName()});
	}
	
}
